package cn.com.lyj6851.user.controller;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
public class UserMangerController {
	
	@GetMapping("login")
	public ModelAndView require() {
        return new ModelAndView("ftl/login");
    }
	
	@GetMapping("hello")
	public String hello() {
		return "Hello Word ! ";
	}
	
	@GetMapping("/authuser")
    public Authentication user(Authentication user) {
        return user;
    }

}
